package com.thwj.project.biz.enums;

/***
 * 提现状态
 */
public enum AccountWithdrawStatusEnum {

    auditing(1,"审核中"),
    auditing_pass(2,"审核通过"),
    auditing_not_pass(3,"审核失败"),
    ;
    AccountWithdrawStatusEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static AccountWithdrawStatusEnum getEnumByValue(Integer value){
        for (AccountWithdrawStatusEnum typeEnum : AccountWithdrawStatusEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
